package com.bjpowernode.commons.utils;

import java.util.UUID;

public class UUIDUtils {
    public static String getUUID() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String getUUID(boolean upper) {
        if (!upper) {
            return getUUID();
        }
        return getUUID().toUpperCase();
    }
}
